package org.sn.jdish.designmode.abstractfactory;

import org.sn.jdish.designmode.abstractfactory.impl.ManShirtFactory;
import org.sn.jdish.designmode.abstractfactory.impl.WomanShirtFactory;
import org.sn.jdish.designmode.factory.ShirtProducer;

public class ShirtProducerMain {

	public static void main(String[] args) {
		System.out.println("抽象工厂模式");
		ShirtFactory shirtProvider1 = new ManShirtFactory();
		ShirtProducer shirtProducer1 = shirtProvider1.produce();
		shirtProducer1.produceShirt();

		ShirtFactory shirtProvider2 = new WomanShirtFactory();
		ShirtProducer shirtProducer2 = shirtProvider2.produce();
		shirtProducer2.produceShirt();
	}

}
